chroot Environment
2011/03/14 |
Configute chroot environment. Simply install "bind-chroot" package to do so. If you edit named.conf or other zone files on chroot environment, edit configuration files under /var/named/chroot/. |
[root@dlp ~]# yum -y install bind-chroot [root@dlp ~]# /etc/rc.d/init.d/named restart Stopping named: [ OK ] Starting named: [ OK ] [root@dlp ~]# ll /var/named/chroot/etc total 28 -rw-r--r--. 1 root root 331 Mar 13 12:59 localtime drwxr-x---. 2 root named 4096 Dec 18 05:52 named -rw-r-----. 1 root named 1291 Mar 14 20:35 named.conf -rw-r--r--. 1 root named 601 Dec 18 05:52 named.iscdlv.key -rw-r-----. 1 root named 931 Jun 21 2007 named.rfc1912.zones drwxr-xr-x. 3 root root 4096 May 9 21:33 pki -rw-r-----. 1 root named 77 Mar 14 19:51 rndc.key [root@dlp ~]# ll /var/named/chroot/var/named total 40 -rw-r--r--. 1 root root 246 Mar 14 20:41 0.0.10.db drwxr-x---. 6 root named 4096 May 9 21:33 chroot drwxrwx---. 2 named named 4096 May 7 08:24 data drwxrwx---. 2 named named 4096 May 9 21:19 dynamic -rw-r-----. 1 root named 1892 Feb 18 2008 named.ca -rw-r-----. 1 root named 152 Dec 15 2009 named.empty -rw-r-----. 1 root named 152 Jun 21 2007 named.localhost -rw-r-----. 1 root named 168 Dec 15 2009 named.loopback -rw-r--r--. 1 root root 269 Mar 14 20:55 srv.world.lan drwxrwx---. 2 named named 4096 Dec 18 05:52 slaves |